package gamesys.games.particlesystem.utils
{
	/**
	 * @author robertthurston
	 */
	public class ArrayUtils
	{
		public static function compact(array : Array) : void
		{
			var length : int = array.length;

			for (var i : int = length - 1;i >= 0;i--)
			{
				if (array[i] == null)
				{
					array.splice(i, 1);
				}
			}
		}
	}
}
